export default [
  {
    path: '/user',
    layout: false,
    routes: [
      { path: '/user', routes: [{ name: '登录', path: '/user/login', component: './user/Login' }] },
      { component: './404' },
    ],
  },
  { path: '/', redirect: '/member' },
  { path: '/member', redirect: '/member/user' },
  {
    name: '用户管理',
    path: '/member',
    routes: [
      { path: '/member/user', redirect: '/member/user/list' },
      { name: '用户列表', path: '/member/user/list', icon: 'smile', component: './user/member/list' },
    ],
  },
  {
    name: '题目管理',
    path: '/question',
    routes: [
      { path: '/question', redirect: '/question/list' },
      { name: '题目列表', path: '/question/list', icon: 'smile', component: './question/list' },
    ],
  },
  {
    name: '标签管理',
    path: '/tag',
    routes: [
      { path: '/tag', redirect: '/tag/list' },
      { name: '标签列表', path: '/tag/list', icon: 'smile', component: './tag/list' },
    ],
  },
  {
    name: '数据看板',
    path: '/kanban',
    routes: [
      { path: '/kanban', redirect: '/kanban/list' },
      { name: '答题列表', path: '/kanban/list', icon: 'smile', component: './kanban/list' },
      { name: '数据统计', path: '/kanban/data', icon: 'smile', component: './kanban/data' },
    ],
  },
  // {
  //   name: '用户中心',
  //   path: '/member',
  //   routes: [
  //     { path: '/member/user', redirect: '/member/user/list' },
  //     { path: '/member/vip', redirect: '/member/vip/list' },
  //     { name: '用户列表', path: '/member/user/list', icon: 'smile', component: './user/member/list' },
  //     { name: '用户详情', path: '/member/user/detail/:id', icon: 'smile', component: './user/member/detail', hideInMenu: true },
  //     { name: 'VIP列表', path: '/member/vip/list', icon: 'smile', component: './user/vip/list' },
  //   ],
  // },
  // {
  //   name: '设计师管理',
  //   path: '/designer',
  //   routes: [
  //     { path: '/designer', redirect: '/designer/apply' },
  //     { path: '/designer/apply', redirect: '/designer/apply/list' },
  //     { name: '设计师申请', path: '/designer/apply/list', icon: 'smile', component: './user/designer/apply/list' },
  //     { name: '定制设计师', path: '/designer/custom/list', icon: 'smile', component: './user/designer/list/custom' },
  //     { name: '创作设计师', path: '/designer/create/list', icon: 'smile', component: './user/designer/list/create' },
  //     { name: '设计师详情', path: '/designer/detail/:id', icon: 'smile', component: './user/designer/detail', hideInMenu: true },
  //   ],
  // },
  // {
  //   name: '定制管理',
  //   path: '/custom',
  //   routes: [
  //     { path: '/custom', redirect: '/custom/demand' },
  //     { path: '/custom/demand', redirect: '/custom/demand/list' },
  //     { name: '需求列表', path: '/custom/demand/list', icon: 'smile', component: './custom/demand/list' },
  //     { name: '需求详情', path: '/custom/demand/detail/:id', icon: 'smile', component: './custom/demand/detail', hideInMenu: true },
  //     { name: '服务列表', path: '/custom/service/list', icon: 'smile', component: './custom/service/list' },
  //     { name: '推荐服务', path: '/custom/service/recommend', icon: 'smile', component: './custom/service/recommend' },
  //     { name: '案例列表', path: '/custom/case/list', icon: 'smile', component: './custom/case/list' },
  //     { name: '案例详情', path: '/custom/case/detail/:id', icon: 'smile', component: './custom/case/detail', hideInMenu: true },
  //     { name: '案例评论', path: '/custom/case/comment', icon: 'smile', component: './custom/case/comment' },
  //   ],
  // },
  // {
  //   name: '资源管理',
  //   path: '/resource',
  //   routes: [
  //     { path: '/resource', redirect: '/resource/list' },
  //     { name: '资源列表', path: '/resource/list', icon: 'smile', component: './resource/list' },
  //     { name: '资源评论', path: '/resource/comments', icon: 'smile', component: './resource/comments' },
  //     { name: '资源推荐', path: '/resource/recommend/list', icon: 'smile', component: './resource/recommend' },
  //     { name: '资源详情', path: '/resource/detail/:id', icon: 'smile', component: './resource/detail', hideInMenu: true },
  //     { name: '发布/编辑资源', path: '/resource/edit/:id?', icon: 'smile', component: './resource/edit', hideInMenu: true },
  //     { name: '专题列表', path: '/resource/topic/list', icon: 'smile', component: './resource/topic/list' },
  //     { name: '发布/编辑专题', path: '/resource/topic/edit/:id?', icon: 'smile', component: './resource/topic/edit', hideInMenu: true },
  //   ],
  // },
  // {
  //   name: '作品管理',
  //   path: '/work',
  //   routes: [
  //     { path: '/work', redirect: '/work/list' },
  //     { name: '作品列表', path: '/work/list', icon: 'smile', component: './work/list' },
  //     { name: '作品评论', path: '/work/comments', icon: 'smile', component: './work/comments' },
  //     { name: '作品推荐', path: '/work/recommend/list', icon: 'smile', component: './work/recommend' },
  //     { name: '作品详情', path: '/work/detail/:id', icon: 'smile', component: './work/detail', hideInMenu: true },
  //     { name: '发布/编辑作品', path: '/work/edit/:id?', icon: 'smile', component: './work/edit', hideInMenu: true },
  //   ],
  // },
  // {
  //   name: '文章管理',
  //   path: '/article',
  //   routes: [
  //     { path: '/article', redirect: '/article/list' },
  //     { name: '文章列表', path: '/article/list', icon: 'smile', component: './article/list' },
  //     { name: '文章评论', path: '/article/comments', icon: 'smile', component: './article/comments' },
  //     { name: '文章推荐', path: '/article/recommend/list', icon: 'smile', component: './article/recommend' },
  //     { name: '文章详情', path: '/article/detail/:id', icon: 'smile', component: './article/detail', hideInMenu: true },
  //     { name: '发布/编辑文章', path: '/article/edit/:id?', icon: 'smile', component: './article/edit', hideInMenu: true },
  //   ],
  // },
  // {
  //   name: '课程管理',
  //   path: '/course',
  //   routes: [
  //     { path: '/course', redirect: '/course/list' },
  //     { name: '课程列表', path: '/course/list', icon: 'smile', component: './course/list' },
  //     // { name: '课程评价', path: '/course/comments', icon: 'smile', component: './course/comments' },
  //     { name: '课程详情', path: '/course/detail/:id', icon: 'smile', component: './course/detail', hideInMenu: true },
  //     { name: '发布/编辑课程', path: '/course/edit/:id?', icon: 'smile', component: './course/edit', hideInMenu: true },
  //   ],
  // },
  // {
  //   name: '圈子管理',
  //   path: '/circle',
  //   routes: [
  //     { path: '/circle', redirect: '/circle/list' },
  //     { name: '圈子列表', path: '/circle/list', icon: 'smile', component: './circle/list' },
  //     { name: '动态列表', path: '/circle/post/list', icon: 'smile', component: './circle/post/list' },
  //     { name: '动态详情', path: '/circle/post/list/:id', icon: 'smile', component: './circle/post/detail', hideInMenu: true },
  //     { name: '圈子评论', path: '/circle/comment/list', icon: 'smile', component: './circle/comment/list' },
  //     { name: '评论详情', path: '/circle/comment/list/:id', icon: 'smile', component: './circle/comment/detail', hideInMenu: true },
  //     { name: '发布/编辑圈子', path: '/circle/edit/:id?', icon: 'smile', component: './circle/edit', hideInMenu: true },
  //   ],
  // },
  // {
  //   name: '消息管理',
  //   path: '/message',
  //   routes: [
  //     { path: '/message', redirect: '/message/push' },
  //     { path: '/message/push', redirect: '/message/push/list' },
  //     { name: '推送管理', path: '/message/push/list', icon: 'smile', component: './message/push/list' },
  //     { name: '发布/编辑推送', path: '/message/push/edit/:id?', icon: 'smile', component: './message/push/edit', hideInMenu: true },
  //     { name: '聊天管理', path: '/message/chat/list', icon: 'smile', component: './message/chat/list' },
  //     { name: '聊天记录', path: '/message/chat/detail/:id', icon: 'smile', component: './message/chat/detail', hideInMenu: true },
  //   ],
  // },
  // {
  //   name: '评论管理',
  //   path: '/comment',
  //   hideInMenu: true,
  //   routes: [
  //     { name: '评论详情', path: '/comment/detail/:type/:id', icon: 'smile', component: './comment/detail', hideInMenu: true },
  //   ],
  // },
  // {
  //   name: '评价管理',
  //   path: '/evaluation',
  //   routes: [
  //     { path: '/evaluation', redirect: '/evaluation/course' },
  //     { name: '课程评价', path: '/evaluation/course', icon: 'smile', component: './evaluation/course' },
  //     { name: '服务评价', path: '/evaluation/service', icon: 'smile', component: './evaluation/service' },
  //   ],
  // },
  // {
  //   name: '内容运营',
  //   path: '/marketing',
  //   routes: [
  //     { path: '/marketing', redirect: '/marketing/content' },
  //     { path: '/marketing/content', redirect: '/marketing/content/list' },
  //     { path: '/marketing/putOn', redirect: '/marketing/putOn/list' },
  //     { name: '内容管理', path: '/marketing/content/list', icon: 'smile', component: './marketing/content/list' },
  //     { name: '内容编辑', path: '/marketing/content/edit/:id?', icon: 'smile', component: './marketing/content/edit', hideInMenu: true},
  //     { name: '投放管理', path: '/marketing/putOn/list', icon: 'smile', component: './marketing/putOn/list' },
  //   ],
  // },
  // {
  //   name: '订单管理',
  //   path: '/order',
  //   routes: [
  //     { path: '/order', redirect: '/order/resource' },
  //     { path: '/order/resource', redirect: '/order/resource/list' },
  //     { path: '/order/course', redirect: '/order/course/list' },
  //     { name: '需求订单', path: '/order/demand/list', icon: 'smile', component: './order/demand' },
  //     { name: '服务订单', path: '/order/service/list', icon: 'smile', component: './order/service' },
  //     { name: '资源订单', path: '/order/resource/list', icon: 'smile', component: './order/resource' },
  //     { name: '课程订单', path: '/order/course/list', icon: 'smile', component: './order/course' },
  //     { name: '系统订单', path: '/order/system/list', icon: 'smile', component: './order/system' },
  //     { name: '提现管理', path: '/order/cash', icon: 'smile', component: './order/cash' },
  //     { name: '售后管理', path: '/order/afterSales/list', icon: 'smile', component: './order/afterSales' },
  //   ],
  // },
  // {
  //   name: '系统管理',
  //   path: '/system',
  //   routes: [
  //     { path: '/system', redirect: '/system/label' },
  //     { name: '标签管理', path: '/system/label', icon: 'smile', component: './system/label' },
  //     { name: '协议管理', path: '/system/agreement', icon: 'smile', component: './system/agreement' },
  //     { name: '字典管理', path: '/system/dictionary', icon: 'smile', component: './system/dictionary' },
  //     { name: '福利管理', path: '/system/welfare', icon: 'smile', component: './system/welfare' },
  //   ],
  // },
  { component: './404' },
];
